package com.itheima.confige;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import javax.sql.DataSource;

//@Configuration  //声明当前类为配置类
//@EnableConfigurationProperties(JdbcProperties.class)  //声明要使用 JdbcProperties 这个类
public class JdbcCinfige {


//    @Bean
//    @ConfigurationProperties(prefix = "jdbc")
//    public DataSource dataSource(){
//        DruidDataSource dataSource =new DruidDataSource();
//        return  dataSource;
//    }
}
